Custom Reusable Buttons (Swift 5, Xcode 12, 2020)
Aimtoplacebuttonssotheircentersarealwaysatleast60pointsapart.Ifyourbuttonsmeasure60pointsorlarger,addfourpointsofpaddingaroundthem ...,Youcreateabuttonbyprovidinganactionandalabel.Theactioniseitheramethodorclosurepropertythatdoessomethingwhenause...。參考影片的文章的如下: